package com.weigj.model;

import java.util.List;

import com.jfinal.plugin.activerecord.Model;

public class User extends Model<User> {
	public static final User dao=new User();
	
	private String shiYear;
	public String getShiYear() {
		return shiYear;
	}

	public User getUserById(Long id){
		return dao.findById(id);
	}
	
	
	public List<User> queryList(){
		String sql="select * from app_hourcontract where ";
		//分页查询  pageNumber 页数  pageSize 一页的个数  select 查询语句  sqlExceptSelect 参数
		dao.paginate(1, 20, sql, "");
		return dao.find(sql);
	}
	
	
	
}
